<?php
include "../../db_const.php";
include "../../connect.php";
include "../../connect_ado.php";
//include "../../isa-lib/isa-function/isa_date_function.php";
//include "../../isa-lib/isa-function/isa_public_function.php";

//*****************************************************************************************************************
//	V1.0	ChungNT	Kiem tra so ten cua hang da ton tai chua
//*****************************************************************************************************************
echo 'ttt';

	$ten_ho_kinh_doanh = $_REQUEST['id'];
	echo $ten_ho_kinh_doanh;

	$tp   = $_REQUEST['type'];
	$sql = "SELECT count(*) FROM T_ONEGATE_RECORD WHERE dbo.f_GetValueOfXMLtag(C_LICENSE_XML_DATA, 'ten_ho_kinh_doanh') = '".$ten_ho_kinh_doanh."' AND (FK_RECORDTYPE = '001')";
	$v_result = $ado_conn->GetRow($sql);
	echo($v_result[0]);
?>